package com.stylefeng.guns.modular.system.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng123
 * @since 2018-07-19
 */
@TableName("nb_gp_dashboard")
public class NbGpDashboard extends Model<NbGpDashboard> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("g_code")
    private String gCode;
    @TableField("g_name")
    private String gName;
    @TableField("g_last_px")
    private Double gLastPx;
    @TableField("g_px_change")
    private Double gPxChange;
    @TableField("g_px_change_rate")
    private Double gPxChangeRate;
    @TableField("g_date")
    private Date gDate;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getgCode() {
        return gCode;
    }

    public void setgCode(String gCode) {
        this.gCode = gCode;
    }

    public String getgName() {
        return gName;
    }

    public void setgName(String gName) {
        this.gName = gName;
    }

    public Double getgLastPx() {
        return gLastPx;
    }

    public void setgLastPx(Double gLastPx) {
        this.gLastPx = gLastPx;
    }

    public Double getgPxChange() {
        return gPxChange;
    }

    public void setgPxChange(Double gPxChange) {
        this.gPxChange = gPxChange;
    }

    public Double getgPxChangeRate() {
        return gPxChangeRate;
    }

    public void setgPxChangeRate(Double gPxChangeRate) {
        this.gPxChangeRate = gPxChangeRate;
    }

    public Date getgDate() {
        return gDate;
    }

    public void setgDate(Date gDate) {
        this.gDate = gDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "NbGpDashboard{" +
        "id=" + id +
        ", gCode=" + gCode +
        ", gName=" + gName +
        ", gLastPx=" + gLastPx +
        ", gPxChange=" + gPxChange +
        ", gPxChangeRate=" + gPxChangeRate +
        ", gDate=" + gDate +
        "}";
    }
}
